home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / network / lattice / portlib.lzh / PORTLIB / SOCKIOS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-13  |  2.4 KB  |  55 lines

  1. #ifndef _SOCKIOS_H
  2. #define _SOCKIOS_H
  3.  
  4. /* socket-level I/O control calls */
  5. #define SIOCGLOWAT    (('S' << 8) | 1)
  6. #define SIOCSLOWAT    (('S' << 8) | 2)
  7. #define SIOCGHIWAT    (('S' << 8) | 3)
  8. #define SIOCSHIWAT    (('S' << 8) | 4)
  9. #define SIOCSPGRP    (('S' << 8) | 5)
  10. #define SIOCGPGRP    (('S' << 8) | 6)
  11. #define SIOCATMARK    (('S' << 8) | 7)
  12.  
  13. /* socket configuration controls */
  14. #define SIOCGIFNAME    (('S' << 8) | 10)    /* get iface name */
  15. #define SIOCSIFLINK    (('S' << 8) | 11)    /* connect iface to device */
  16. #define SIOCGIFCONF    (('S' << 8) | 12)    /* get iface list */
  17. #define SIOCGIFFLAGS    (('S' << 8) | 13)    /* get flags */
  18. #define SIOCSIFFLAGS    (('S' << 8) | 14)    /* set flags */
  19. #define SIOCGIFADDR    (('S' << 8) | 15)    /* get PA address */
  20. #define SIOCSIFADDR    (('S' << 8) | 16)    /* set PA address */
  21. #define SIOCGIFDSTADDR    (('S' << 8) | 17)    /* get remote PA address */
  22. #define SIOCSIFDSTADDR    (('S' << 8) | 18)    /* set remote PA address */
  23. #define SIOCGIFBRDADDR    (('S' << 8) | 19)    /* get broadcast PA address */
  24. #define SIOCSIFBRDADDR    (('S' << 8) | 20)    /* set broadcast PA address */
  25. #define SIOCGIFNETMASK    (('S' << 8) | 21)    /* get network PA mask */
  26. #define SIOCSIFNETMASK    (('S' << 8) | 22)    /* set network PA mask */
  27. #define SIOCGIFMETRIC    (('S' << 8) | 23)    /* get metric */
  28. #define SIOCSIFMETRIC    (('S' << 8) | 24)    /* set metric */
  29. #define SIOCSLNKFLAGS    (('S' << 8) | 25)    /* set link level flags */
  30. #define SIOCGLNKFLAGS    (('S' << 8) | 26)    /* set link level flags */
  31. #define SIOCGIFMTU    (('S' << 8) | 27)    /* get MTU size */
  32. #define SIOCSIFMTU    (('S' << 8) | 28)    /* set MTU size */
  33. #define SIOCGIFSTATS    (('S' << 8) | 29)    /* get interface statistics */
  34. #define SIOCGIFHWADDR    (('S' << 8) | 50)    /* get if hardware address */
  35.  
  36. /* routing table calls */
  37. #define SIOCADDRT    (('S' << 8) | 30)    /* add routing table entry */
  38. #define SIOCDELRT    (('S' << 8) | 31)    /* delete routing table entry */
  39.  
  40. /* ARP cache control calls */
  41. #define SIOCDARP    (('S' << 8) | 40)    /* delete ARP table entry */
  42. #define SIOCGARP    (('S' << 8) | 41)    /* get ARP table entry */
  43. #define SIOCSARP    (('S' << 8) | 42)    /* set ARP table entry */
  44.  
  45. /* structure used with SIOCSIFLINK */
  46. struct iflink {
  47.     char    ifname[16];    /* interface to link device to without unit
  48.                  * number, eg 'sl'. On successful return
  49.                  * the actual interface to which the device
  50.                  * was linked, eg 'sl0', can be found here. */
  51.     char    device[128];    /* device name, eg '/dev/ttya' */
  52. };
  53.  
  54. #endif /* _SOCKIOS_H */
  55.